/***********************************************************************
    filename:   hgeViewportTarget.h
    created:    Fri Feb 13 2009
    author:     Paul D Turner
*************************************************************************/

#ifndef _HgeViewportTarget_h_
#define _HgeViewportTarget_h_

#include "hgeRenderTarget.h"

/*!
\brief
Direct3D9 RenderTarget that represents a screen viewport.
*/
class ViewportTarget : public RenderTarget
{
public:
	/*!
	\brief
	Construct a default ViewportTarget that uses the current
	Direct3D9 viewport as it's initial area.
	*/
	ViewportTarget(Renderer& owner);

	/*!
	\brief
	Construct a ViewportTarget that uses the specified hgeRect as it's
	initial area.

	\param area
	hgeRect object describing the initial viewport area that should be used for
	the RenderTarget.
	*/
	ViewportTarget(Renderer& owner, const hgeRect& area);

	// implementations of RenderTarget interface
	bool isImageryCache() const;
};

#endif  // end of guard _HgeViewportTarget_h_
